package Meituan;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: leiwenkang02@meituan.com
 * @date: 2018/11/12
 * @time: 15:13
 */
public class Test26 {
    private static <T> T autoConvert(Object obj) {
        return (T) obj;
    }
    // 测试代码
    public static void main(String[] args) {

        Object object = "helloWorld";
        String helloworld = autoConvert(object);
        System.out.println("helloworld = " + helloworld);

    }
}
